var Page = function(){
	var cache = {};
	return function(page, fn){
		if(cache[page]){
			showPage(page, cache[page]);
			fn && fn();
		}else{
			&.post('./data/getNewsData.php', {
				page : page
			}, function(res){
				if(res.errNo == 0){
					showPage(page, res.data);
					cache[page] = res.data;
				}else{
					console.log('失败');
				}
			})
		}
	}
}();

$('#next_page').click(function(){
	var $news = $('#news_content'),
			page = $news.data('page') ;
			Page(page, function(){
				$news.data('page', page + 1);
			})
});